package net.ifilm.dao;

import com.ibatis.sqlmap.client.SqlMapClient;
import net.ifilm.entity.LeaveMessage;
import net.ifilm.entity.PageCount;
import net.ifilm.entity.SystemParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 全局系统参数表<tt>systemparam</tt>数据库操作类。
 * 
 * User: <a href="wangjunneil@gmail.com">wangjun</a> Date: 2012-08-05 21:20
 */
@Repository
@SuppressWarnings("unchecked")
public class LeaveMessageDao extends BaseDao {
    
    public List<LeaveMessage> queryLeaveMessage(PageCount pageCount) {
        return super.queryForList("queryLeaveMessage", pageCount);
    }
    
    public int queryLeaveMessageCount() {
        return (Integer)super.queryForObject("queryLeaveMessageCount");
    }
    
    public int insertLeaveMessage(LeaveMessage leaveMessage) {
        return (Integer)super.insert("insertLeaveMessage", leaveMessage);
    }

    public void deleteLeaveMessage(Map<String, Object> parameter) {
        super.delete("deleteMessage", parameter);
    }
    
} // /:~
